#include <stdio.h>
#include <stdlib.h>

void Foo()
{
    printf("Bye!\n");
}

int main()
{
    printf("main start\n");
    atexit(Foo);
    printf("main end\n");

    return 0;
}
